#include"processtar.h"

void download()
{
    int target =TAR_MAX;
    int total = 0;
    while(total<= target)
    {
        usleep(TSIZE);
        total+= DOWN_ADD;
        int rate = total*100/target;
        process_v2(rate);
    }
    printf("\n");
}


int main()
{
    download();
    //process();
    return 0;
}
